<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      text-align: center;
      padding-top: 200px;
    }
    .container {
      display: inline-block;
      border: solid 5px #f00;
    }
    .box {
      width: 200px;
      height: 200px;
      background-color: orange;
    }
    .box:hover {
      transform: translate(50px,50px) rotate(30deg) scale(60%);
      transform-origin: 20px 20px;
    }
  </style>
</head>
<body>

  <div class="container">
    <div class="box"></div>
  </div>
</body>
</html>